home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
bootslow.zip
/
SOURCE.ZIP
/
MKTABLE.ASM
< prev
next >
Wrap
Assembly Source File
|
1991-08-06
|
2KB
|
92 lines
;
;; SlowDown for self-booting software
;;
;; BOOTSLOW
;;
;; Copyright 1991 Alexander R. Pruss
;;
;; May be freely distributed, modified and used provided that no copyright
;; messages are removed, and this sentence together with the next two are
;; always included in unmodified form. If you like this program a lot, you are
;; invited to show your appreciation by making a tax-deductible donation to
;; the Pro-Life or Anti-Abortion movement, but are under no obligation, moral
;; or otherwise to do so (especially if you disagree with the goals of this
;; movement.) There is no warranty; use at own risk.
;
include macros.inc
c segment
org 100h
BEGIN:
assume CS:c,DS:c
Puts copyright
Puts drive_q
g:
DOSGetch
or al,TOLOWER
cmp al,'a'
jb g
cmp al,'z'
ja g
sub al,'a'
mov dl,al
Clear ax
push ds
pop es
Clear dh
push dx
mov bx,offset itable
mov ax,0202h
mov cx,0002h
int 13h
jc diskerror
mov ah,CreatHandle
mov dx,offset filename
mov cx,ArchBit
int 21h
jc openerror
mov bx,ax
mov ah,WriteHandle
mov cx,1024
mov dx,offset itable
int 21h
pushf
mov ah,CloseHandle
int 21h
popf
jc openerror
Puts done
mov ax,4c00h
int 21h
openerror:
Puts cantopen
mov ax,4c01h
int 21h
diskerror:
Puts i13error
mov ax,4c02h
int 21h
_puts proc near
top:
mov bx,1
mov dx,si
mov ah,WriteHandle
int 21h
ret
_puts endp
String copyright, <'Interrupt table recorder.', CR,LF, '(C) Copyright 1991 Alexander Pruss', CR,LF>
String drive_q, <'Choose physical floppy drive to load data from: (A,B,etc.)', CR,LF>
String cantopen, <'Error writing boot.itb.',CR,LF>
String i13error, <'Low level disk error.',CR,LF>
String done, <'Done!',CR,LF>
filename db 'boot.itb',00
itable:
c ends
end BEGIN